#include <stdio.h>
void print_arr1(int arr1[],int arr_length)
{
	printf("p1 length = %d\n",sizeof(arr1));
	for(int i=0;i<arr_length;i++)
	{
		printf("%d ",arr1[i]);	
	}
	printf("\n");	
}
void print_arr2(int *p_arr,int arr_length)
{
	printf("p2 length = %d\n",sizeof(p_arr));
	for(int i=0;i<arr_length;i++)
	{
		printf("%d ",p_arr[i]);	
	}
	printf("\n");	
}
int main(void)
{
	int arr[]={1,2,3,4,5,6,7,8},*p;
	p = arr;
	printf("main %d\n",sizeof(arr));
	print_arr1(arr,sizeof(arr) / sizeof(arr[0]));
	print_arr1(p,sizeof(arr) / sizeof(arr[0]));
	print_arr2(arr,sizeof(arr) / sizeof(arr[0]));
	print_arr2(p,sizeof(arr) / sizeof(arr[0]));
	return 0;
}
